package com.office.meeting.situation.service.impl;

import java.util.List;

import com.office.common.utils.SecurityUtils;
import com.office.meeting.situation.domain.SituationInvitation;
import com.office.meeting.situation.mapper.SituationMapper;
import com.office.meeting.situation.service.SituationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 预约情况Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-17
 */
@Service
public class SituationServiceImpl implements SituationService {
    @Autowired
    private SituationMapper situationMapper;
    /**
     * 查询预约情况列表
     *
     * @param conferenceInvitation 预约情况
     * @return 预约情况
     */
    @Override
    public List<SituationInvitation> selectConferenceInvitationList(SituationInvitation conferenceInvitation) {
        // 获取当前登录用户的id
        Long loginUserId = SecurityUtils.getUserId();

        return situationMapper.selectConferenceInvitationList(conferenceInvitation,loginUserId);
    }
}
